Skip to content

NET_SDK_EditSNMPCfg

Interface Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
BOOL NET_SDK_EditSNMPCfg(
    LONG lUserID,
    NET_SDK_SNMP_VERSION snmpVersion,
    int snmpPort,
    const char* trapAddress,
    int trapPort,
    NET_SDK_SNMP_SECURITY_LEVEL securityLevel,
    NET_SDK_SNMP_AUTH_TYPE authType,
    NET_SDK_SNMP_PRIV_TYPE privType,
    const char* authPasswd,
    const char* privPasswd);
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
public static extern Boolean NET_SDK_EditSNMPCfg(
    Int32 lUserID,
    NET_SDK_SNMP_VERSION snmpVersion,
    Int32 snmpPort,
    string trapAddress,
    Int32 trapPort,
    NET_SDK_SNMP_SECURITY_LEVEL securityLevel,
    NET_SDK_SNMP_AUTH_TYPE authType,
    NET_SDK_SNMP_PRIV_TYPE privType,
    string authPasswd,
    string privPasswd);

Function Description

Edit SNMP configuration (valid only for NVR).

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
snmpVersionin NET_SDK_SNMP_VERSION SNMP version (V1/V2/V3 mutually exclusive).
snmpPortin int SNMP port number.
trapAddressin char* Trap address.
trapPortin int Trap port number.
securityLevelin NET_SDK_SNMP_SECURITY_LEVEL Security level (0: No authentication and no encryption, 1: Authentication and no encryption, 2: Authentication and encryption).
authTypein NET_SDK_SNMP_AUTH_TYPE Authentication method (0:MD5, 1:SHA).
privTypein NET_SDK_SNMP_PRIV_TYPE Encryption method (0:AES, 1:DES).
authPasswdin char* Authentication password (clear text, internal MD5 encryption).
privPasswdin char* Encrypted password (clear text, internal MD5 encryption).

Return Value

  • Type:BOOL

  • Remark:Returns TRUE if successful, FALSE if failed.

Remarks

None

Error Code